# -*- coding: utf-8 -*-

from odoo import models, fields, api
from odoo.exceptions import ValidationError
from odoo.exceptions import UserError


class Press(models.Model):
    _name = 'ebook.sell'
    _description = "图书馆销售管理"

    name = fields.Char(
        '图书馆销售详情',
        default='图书销售详情'
    )

    ebook_sell_name = fields.Char(

        string='书名',
        required=True
    )
    number = fields.Float(string="销量")
    schedule_date = fields.Datetime('销售时间', required=True)
